<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Member/mcardlist')}">会员次卡列表</a></li>
			<li><a href="{:url('Member/cardadd')}">会员次卡添加</a></li>
                        <li class="active"><a href="{:url('Member/storevalue')}">储值卡列表</a></li>
                        <li><a href="{:url('Member/storeaddlist')}">储值卡添加</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('Member/storevalue')}">
            <input type="text" class="form-control" name="user_login" style="width: 160px;" value="{:input('request.keyword')}" placeholder="手机号/店铺">
            时间:
            <input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
            <input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('Member/storevalue')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
                                        <th>所属店铺</th>
					<th>卡名称</th>
					<th>储值金额</th>
					<th>赠送金额</th>
                                        <th>储值卡售价</th>
                                        <th>过期是否可用</th>
                                        <th>储值卡折扣</th>
                                        <th>商品折扣</th>
                                        <th>服务折扣</th>
                                        <th>有效时间</th>
                                        <th>滞销天数</th>
                                        <th>状态</th>
                                        <th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>  
                                    <td>{$vo.shop_name}</td>
                                    <td>{$vo.stov_name}</td>
                                    <td>{$vo.sv_price}</td>
                                    <td>{$vo.zs_price}</td>
                                    <td>{$vo.sj_price}</td>
                                    <td><?php $type = $vo['overdue_is'];switch($type){case 1: echo "仍可使用";break;case 2: echo "禁止使用";break;} ?></td>
                                    <td>{$vo.svcard_is}折</td>
                                    <td>{$vo.goods_dis}折</td>
                                    <td>{$vo.serve_dis}折</td>
                                    <td>{$vo.valid_time}天</td>
                                    <td>{$vo.use_time}天</td>
                                    <td>
                                        <if condition="$vo['status'] eq 1">
                                                <a href="{:url('member/storeban',array('id'=>$vo['sv_guid']))}" class="js-ajax-dialog-btn" data-msg="你确定将储值卡冻结吗?">正常</a>
                                        <else />
                                                <a href="{:url('member/storecancelBan',array('id'=>$vo['sv_guid']))}" class="js-ajax-dialog-btn" data-msg="你确定将储值卡恢复正常吗?">冻结</a>
                                        </if>
                                    </td>
                                    <td>
                                        <!--<a href="{:url('Member/memdelete',array('nav_id'=>$vo['sv_guid']))}">删除</a>-->
                                        <a href="{:url('Member/storedupdatelist',array('nav_id'=>$vo['sv_guid']))}">修改</a>
                                    </td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>